package com.jinsi.service.impl;

import com.jinsi.mapper.FileMapper;
import com.jinsi.pojo.EqmFile;
import com.jinsi.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FileServiceImpl implements FileService {

    @Autowired
    private FileMapper fileMapper;
    @Override
    public List<EqmFile> getAll(Integer fid) {
        return fileMapper.getFileByFolderId(fid);
    }

    @Override
    public void addFile(EqmFile eqmFile) {

        fileMapper.insetFile(eqmFile);

    }
}
